package org.feng.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.feng.pojo.BaseEntity;

import java.io.Serializable;

/**
 * @author feng
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_resource")
@ApiModel("资源")
public class Resource extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "资源名称")
    @TableField("name")
    private String name;
    @ApiModelProperty(value = "appkey")
    @TableField("`key`")
    private String key;
    @ApiModelProperty(value = "密钥")
    @TableField("secret")
    private String secret;
    @ApiModelProperty(value = "区域")
    @TableField("endpoint")
    private String endpoint;
    @ApiModelProperty(value = "存储空间")
    @TableField("bucket")
    private String bucket;
    @ApiModelProperty(value = "0 关 1 开")
    @TableField("open")
    private Integer open;
    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;
}
